<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TestKontrole2.RevizijskiCiklus>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Kontrole
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Kontrole</h2>
    <% 
        foreach (var item in Model.getKontrole()) {
    %>
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td width="30%">
                <label>
                    Opis kontrole:
                </label>
            </td>
            <td width="70%">
                <%= item.OpisKontrole.ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Kontrolni rizik:
                </label>
            </td>
            <td width="70%">
                <%= item.KontrolniRizik.ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Dopustiva stopa devijacije:
                </label>
            </td>
            <td width="70%">
                <%= item.DopustivaStopaDevijacije.ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Ocekivana stopa devijacije:
                </label>
            </td>
            <td width="70%">
                <%= item.OcekivanaStopaDevijacija.ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Velicina uzorka:</label>
            </td>
            <td width="70%">
                <%= item.getVelicinaUzorka().ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Velicina populacije:</label>
            </td>
            <td width="70%">
                <%= item.VelicinaPopulacije.ToString() %>
            </td>
        </tr>
    </table>
    <hr />
    <%
        }
    %>
    <% using (Html.BeginForm("Samples", "TestKontrole", FormMethod.Post)) {%>
    <%= Html.Hidden("revCik",Model.Naziv) %>
    <input type="submit" value="Generiraj uzorak" />
    <% } %>
</asp:Content>
